
export default function arrayObjer(arrs,checkbox) {
    let arr = JSON.parse(JSON.stringify(arrs));
    for (let i = 0; i < arr.length; i++) {
      arr[i] = true;
    }
    const zip = ([x, ...xs], [y, ...ys]) => {
      if (x === undefined || y === undefined) return [];
      return [[x, y], ...zip(xs, ys)]; 
    };
    return zip(arr, checkbox).map(([istrue, title]) => ({
      istrue,
      title
    }));
  }